﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.IO;

namespace COFE.Web.Services
{
    /// <summary>
    /// Interface for services that enables accessing the event log (via the COFEShared.MasterEventLogger)
    /// </summary>
    [ServiceContract]
    public interface IEventServices
    {
        /// <summary>
        /// Return events that occured in the specified date.
        /// </summary>        
        /// <param name="date">Datetime in YYYYMMDD (EventList.ParseDateTimeFormat) format, e.g. 20090101 </param>
        /// <returns></returns>
        [OperationContract]
        [WebGet(UriTemplate = "{identifier}?json={json}")]
        Stream GetEventList(string identifier, string json);

        /// <summary>
        /// Return events that occured today.
        /// </summary>
        /// <returns></returns>
        [OperationContract]
        [WebGet(UriTemplate = "?json={json}")]
        Stream GetTodayEventList(string json);

    }
}